package com.example.OnlineStorage.service.Download;

import com.example.OnlineStorage.pojo.Response.ResponseData;
import lombok.SneakyThrows;
import org.springframework.stereotype.Service;


@Service
public interface DownloadService {

    ResponseData Download(String address, String name, String range, String UUID);

    ResponseData Download(Long shareFilesId, String address, String name, String range, String UUID);

    @SneakyThrows
    ResponseData DownloadByPath(String path, String name, String range, String UUID);

    @SneakyThrows
    ResponseData DownloadByPath(Long shareFilesId, String path, String name, String range, String UUID);

    @SneakyThrows
    ResponseData OnlinePreviewByPath(String path, String range, String UUID);

    @SneakyThrows
    ResponseData OnlinePreviewByPath(Long shareFilesId, String path, String range, String UUID);
}
